From: Owen W. Taylor Date: Mon, 14 Feb 2011 21:09:10 +0000 (-0500) Subject: workspaceThumbnail: fix stacking for newly added actors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8946 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=89cc6807e0d4afb94abc4334ced3baab765e0ce9;p=gnome-shell.git workspaceThumbnail: fix stacking for newly added actors We don't necessarily get a syncStacking call when an actor is added at the top of the workspace, so make sure to set the stackAbove value for it correctly. https://bugzilla.gnome.org/show_bug.cgi?id=642329 --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index f555bba4e..6d44e2358 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -317,6 +317,11 @@ WorkspaceThumbnail.prototype = { })); this._contents.add_actor(clone.actor); + if (this._windows.length == 0) + clone.setStackAbove(this._background); + else + clone.setStackAbove(this._windows[this._windows.length - 1].actor); + this._windows.push(clone); return clone;